<?php 
/* SVN FILE: $Id$ */
/* FriendLink Test cases generated on: 2009-05-30 22:05:41 : 1243736921*/
App::import('Model', 'FriendLink');

class FriendLinkTestCase extends CakeTestCase {
	var $FriendLink = null;
	var $fixtures = array('app.friend_link');

	function startTest() {
		$this->FriendLink =& ClassRegistry::init('FriendLink');
	}

	function testFriendLinkInstance() {
		$this->assertTrue(is_a($this->FriendLink, 'FriendLink'));
	}

	function testFriendLinkFind() {
		$this->FriendLink->recursive = -1;
		$results = $this->FriendLink->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('FriendLink' => array(
			'id'  => 1,
			'link_name'  => 'Lorem ipsum dolor sit amet',
			'link_url'  => 'Lorem ipsum dolor sit amet',
			'link_logo'  => 'Lorem ipsum dolor sit amet',
			'show_order'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>